package lab02.test07;

public class Student extends Person {
    String studyNumber;
    String school;

    public void setStudyInformation(String studyNumber,String school) {
        this.studyNumber = studyNumber;
        this.school = school;

    }

    public String toString() {        //将属性作为字符串返回
        return super.toString() + " 学号:" + studyNumber + " 学校:" + school;
    }
}